package org.dromara.business.domain.bo;

import org.dromara.business.domain.UserLevel;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 用户等级配置业务对象 app_user_level
 *
 * @author Eric
 * @date 2025-09-05
 */
@Data
@AutoMapper(target = UserLevel.class, reverseConvertGenerate = false)
public class UserLevelBo {

    /**
     * 配置ID
     */
    private Long id;

    /**
     * 等级
     */
    @NotNull(message = "等级不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer level;

    /**
     * 等级名称
     */
    @NotBlank(message = "等级名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String levelName;

    /**
     * 个人持仓要求
     */
    @NotNull(message = "个人持仓要求不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal personalHoldingRequirement;

    /**
     * 团队持仓要求
     */
    @NotNull(message = "团队持仓要求不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal teamHoldingRequirement;

    /**
     * 返利收益比例
     */
    @NotNull(message = "返利收益比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal rebateRatio;

    /**
     * 额外奖励比例
     */
    @NotNull(message = "额外奖励比例不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long bonusRatio;

    /**
     * 状态：0-正常，1-禁用
     */
    private Integer status;

    /**
     * 描述
     */
    private String description;


}
